@ Title: desplega texto               		        Filename:greet.s
 @ Author: Arturo Luquin Castillo		    Date: 13-Marzo-2017
@ Description: despliega texto 
@greet.s


@ greet.s -a little asm greeter

.section    .bss
.comm buffer, 48 @ reservando 48 bytes de buffer 

.section      .data



msg:
      .ascii "**Greeter **\n Ingresa tu nombre por favor:"
      msgLen=0-msg
      msg2:
        .ascii "Hello"
      msgLen=.-msg2
      
      .section      .text
      .globl  _start 
      _start:
      
      mov ro,$1
      ldr r1,=msg 
      ldr r2,=msgLen
      mov r7,$4
      svc $0
      
      mov r7,$3
      mov r0,$1
      ldr r1,=buffer
      mov r2,$0x30
      svc$0
      
      
      mov ro,$1
      ldr r1,=msg2 
      ldr r2,=msg2Len
      mov r7,$4
      svc $0
      
      
      
      mov r0,$1
      ldr r1,=buffer
      mov r2,$0x30
      svc$0
      
      mov r7, $1
      svc $0
      .end
